package com.elitel.frame.base.service;

import com.elitel.frame.main.entity.ext.ExtUserInfo;
import com.elitel.frame.main.entity.vo.PageRequestVo;
import com.elitel.frame.main.entity.vo.PageResponseVo;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface UserInfoService extends UserDetailsService {
  int insertUserInfo(ExtUserInfo extUserInfo);

  int updateUserInfo(ExtUserInfo userInfo, boolean updateProject);

  int deleteUserInfo(String loginname);

  ExtUserInfo selectByLoginName(String loginName);

  PageResponseVo<ExtUserInfo> getUserInfoList(PageRequestVo<ExtUserInfo> pr);

  ExtUserInfo selectByUserId(String userId);

  ExtUserInfo selectByAuthorizationCode(String authorizationCode);
}
